package com.guinea.datadb.mongo;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author: shiky
 * @describle:文件存储
 * @dateTime: 2016/3/2
 */
@Document
public class FileOperatorRecord extends BaseMongoEntity{

    private static final long serialVersionUID = -7676341419293957682L;

    //功能类型
    private Short functionType;

    //保存名称
    private String saveName;

    //原始名称(添加索引)
    @Indexed
    private String orgName;

    //保存时间
    private String saveTime;

    //操作时间
    private String operatorTime;

    //保存路径
    private String savePath;

    //登录人(操作人)
    private String loginName;

    public String getLoginName() {
        return loginName;
    }

    public String getSaveName() {
        return saveName;
    }

    public String getOrgName() {
        return orgName;
    }

    public String getSaveTime() {
        return saveTime;
    }

    public String getOperatorTime() {
        return operatorTime;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public void setSaveName(String saveName) {
        this.saveName = saveName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public void setSaveTime(String saveTime) {
        this.saveTime = saveTime;
    }

    public void setOperatorTime(String operatorTime) {
        this.operatorTime = operatorTime;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public Short getFunctionType() {
        return functionType;
    }

    public void setFunctionType(Short functionType) {
        this.functionType = functionType;
    }

    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }

}
